import Vue from 'vue'
import Router from 'vue-router'
import Login from '@/components/Login'
import Role from '@/components/Systemsetup/Role'


Vue.use(Router)

export default new Router({
  routes: [{
      path: '/',
      redirect: '/Login'
    },
    {
      path: '/Login',
      name: 'Login',
      component: Login,
    },
    {
      path: '/Role',
      name: 'Role',
      component: Role,
      children: [
        //系统设置
        {
          path: "userSetting",
          name: "userSetting",
          component: () => import('@/components/systemSettings/userSetting.vue')
        },
        //智能报告
        {
          path: "smartReport",
          name: "smartReport",
          component: () => import('@/components/smartReport/smartReport.vue')
        },
        {
          path: "managementSetting",
          name: "managementSetting",
          component: () => import('@/components/systemSettings/managementSetting.vue')
        },

        // 可视化巡区管理
        {
          path: "visual",
          name: "visual",
          component: () => import('@/components/patrolArea/visual.vue'),
        },
        {
          path: "addedAreas",
          name: "addedAreas",
          component: () => import('@/components/patrolArea/addedAreas.vue')
        },
        {
          path: "compileArea",
          name: "compileArea",
          component: () => import('@/components/patrolArea/compileArea.vue')
        },
        // 指令流转
        {
          path: "directive",
          name: "directive",
          component: () => import('@/components/instruction/directive.vue')
        },
        {
          path: "processingIstruction",
          name: "processingIstruction",
          component: () => import('@/components/instruction/processingIstruction.vue')
        },
        {
          path: "viewInstructions",
          name: "viewInstructions",
          component: () => import('@/components/instruction/viewInstructions.vue')
        },

        // 警务资源管理
        {
          path: "policemanage",
          name: "policemanage",
          component: () => import('@/components/Policeresources/policemanage.vue')
        },
        {
          path: "equipment",
          name: "equipment",
          component: () => import('@/components/Policeresources/equipment.vue')
        },
        {
          path: "car",
          name: "car",
          component: () => import('@/components/Policeresources/car.vue')
        },

        // 查勤监督
        {
          path: "checking",
          name: "checking",
          component: () => import('@/components/checkingSupervision/checking.vue')
        },
<<<<<<< HEAD
        {
          path: "service",
          name: "service",
          component: () => import('@/components/checkingSupervision/service.vue')
        },
=======
        // 排班报备
        {
          path:'roster',
          name:'roster',
          component:()=>import('@/components/roster/index.vue')
        }
>>>>>>> 7d294672abd766acef94d71d716d0a8c919d93e2
      ]
    },

  ]
})
